package l.l.test.获得class对象;

import java.lang.annotation.Annotation;
import java.lang.reflect.Field;
import java.lang.reflect.Method;

/**
 * Created by llw on 2018/5/5/0005.
 */
public class Use_ClassName_class {

    static {
        System.out.println("in Use_ClassName_class static");

    }

    public static void main(String[] args) throws IllegalAccessException, InstantiationException {
        Class<UseClassForName> clazz = UseClassForName.class;
        Annotation[] annotations = clazz.getAnnotations();
        Class<?>[] classes = clazz.getClasses();
        ClassLoader classLoader = clazz.getClassLoader();
        Field[] fields = clazz.getFields();
        Class<?>[] interfaces = clazz.getInterfaces();
        String name = clazz.getName();
        Method[] methods = clazz.getMethods();
        Package aPackage = clazz.getPackage();
        Class<? super UseClassForName> superclass = clazz.getSuperclass();
        String typeName = clazz.getTypeName();
    }
}
